#ifndef __M3G_LOG_H__
#define __M3G_LOG_H__

#include <fstream>
#include <cstdarg>

/**
 *
 */
class Log
{
public:
	static bool open (const char* name);
	static void close ();
	
	static void print (const char* format, ...);
	
private:
	static const char*    file_name;
	static std::ofstream* ofs;
    static bool           enabled;
};


#endif
